package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_user_role;

import cn.com.api.mapper.ApiT_user_roleMapper;

import cn.com.api.service.ApiT_user_roleService;

/**
 * 
 **/
@Service
public class T_user_roleServiceImplBase {
	@Autowired
	private ApiT_user_roleMapper apiT_user_roleMapper;
    
    // 根据id获取
	public ApiT_user_role findT_user_roleById(Integer id){
		ApiT_user_role t_user_role = apiT_user_roleMapper.findT_user_roleById( id );
		return t_user_role;
	}
    
    //查看数据集
	public List<ApiT_user_role> findT_user_roles(){
        List<ApiT_user_role> t_user_roles = apiT_user_roleMapper.findT_user_roles();
		return t_user_roles;
    }
    
	// 添加
	public int insertT_user_role(ApiT_user_role t_user_role){
		int ret_I= apiT_user_roleMapper.insertT_user_role(t_user_role);
		return ret_I;
	}

	// 修改
	public int updateT_user_role(ApiT_user_role t_user_role){
		int ret_I= apiT_user_roleMapper.updateT_user_role(t_user_role);
		return ret_I;
	}
	
    // 删除
	public int deleteT_user_role(Integer id){
		int ret_I= apiT_user_roleMapper.deleteT_user_role( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


